<template>
    <div>
        <a-sub-menu key="System">
            <template #title>
                <span>
                    <SafetyOutlined />
                    <span>系统管理</span>
                </span>
            </template>
            <a-menu-item key="/nepu/role">
                <router-link to="/nepu/role">
                    <UserAddOutlined />
                    <span>角色管理</span>
                </router-link>
            </a-menu-item>

        </a-sub-menu>
        <!--该模块只开放给管理员-->
        <!-- <a-sub-menu key="Nepu" v-isAdmin>
        <template #title>
            <span>
                <SafetyOutlined />
                <span>绩效管理</span>
            </span>
        </template>
        <a-menu-item key="/nepu/job">
            <router-link to="/nepu/job">
                <user-outlined />
                <span>工作量管理</span>
            </router-link>
        </a-menu-item>

    </a-sub-menu> -->
        <!--该模块只开放给管理员-->

        <a-sub-menu key="Dict">
            <template #title>
                <span>
                    <GlobalOutlined />
                    <span>词典管理</span>
                </span>
            </template>
            <a-menu-item key="/nepu/dict/award">
                <router-link to="/nepu/dict/award">

                    <span>教学获奖</span>
                </router-link>
            </a-menu-item>
            <a-menu-item key="/nepu/dict/raward">
                <router-link to="/nepu/dict/raward">

                    <span>科研获奖</span>
                </router-link>
            </a-menu-item>
            <a-menu-item key="/nepu/dict/subject">
                <router-link to="/nepu/dict/subject">

                    <span>横向课题</span>
                </router-link>
            </a-menu-item>
            <a-menu-item key="/nepu/dict/topic">
                <router-link to="/nepu/dict/topic">

                    <span>纵向课题</span>
                </router-link>
            </a-menu-item>
            <a-menu-item key="/nepu/dict/textbook">
                <router-link to="/nepu/dict/textbook">

                    <span>教材</span>
                </router-link>
            </a-menu-item>
            <a-menu-item key="/nepu/dict/book">
                <router-link to="/nepu/dict/book">

                    <span>著作</span>
                </router-link>
            </a-menu-item>
            <a-menu-item key="/nepu/dict/paper">
                <router-link to="/nepu/dict/paper">

                    <span>论文</span>
                </router-link>
            </a-menu-item>
            <a-menu-item key="/nepu/dict/property">
                <router-link to="/nepu/dict/property">

                    <span>知识产权</span>
                </router-link>
            </a-menu-item>
            <a-menu-item key="/nepu/dict/achievement">
                <router-link to="/nepu/dict/achievement">
                    <span>成果</span>
                </router-link>
            </a-menu-item>
            <a-menu-item key="/nepu/dict/thinktank">
                <router-link to="/nepu/dict/thinktank">
                    <span>智库成果</span>
                </router-link>
            </a-menu-item>
        </a-sub-menu>
        <a-sub-menu key="Project">
            <template #title>
                <span>
                    <SafetyOutlined />
                    <span>科研管理</span>
                </span>
            </template>
            <a-menu-item key="/nepu/project/paper">
                <router-link to="/nepu/project/paper">
                    <user-outlined />
                    <span>论文</span>
                </router-link>
            </a-menu-item>
            <a-menu-item key="/nepu/project/achievement">
                <router-link to="/nepu/project/achievement">
                    <user-outlined />
                    <span>成果</span>
                </router-link>
            </a-menu-item>
            <a-menu-item key="/nepu/project/textbook">
                <router-link to="/nepu/project/textbook">
                    <user-outlined />
                    <span>教材</span>
                </router-link>
            </a-menu-item>
            <a-menu-item key="/nepu/project/book">
                <router-link to="/nepu/project/book">
                    <user-outlined />
                    <span>著作</span>
                </router-link>
            </a-menu-item>
            <a-menu-item key="/nepu/project/raward">
                <router-link to="/nepu/project/raward">
                    <user-outlined />
                    <span>科研获奖</span>
                </router-link>
            </a-menu-item>
            <a-menu-item key="/nepu/project/award">
                <router-link to="/nepu/project/award">
                    <user-outlined />
                    <span>教学获奖</span>
                </router-link>
            </a-menu-item>
            <a-menu-item key="/nepu/project/property">
                <router-link to="/nepu/project/property">
                    <user-outlined />
                    <span>知识产权</span>
                </router-link>
            </a-menu-item>
            <a-menu-item key="/nepu/project/topic">
                <router-link to="/nepu/project/topic">
                    <user-outlined />
                    <span>纵向课题</span>
                </router-link>
            </a-menu-item>
            <a-menu-item key="/nepu/project/subject">
                <router-link to="/nepu/project/subject">
                    <user-outlined />
                    <span>横向课题</span>
                </router-link>
            </a-menu-item>
            <a-menu-item key="/nepu/project/thinktank">
                <router-link to="/nepu/project/thinktank">
                    <user-outlined />
                    <span>智库成果</span>
                </router-link>
            </a-menu-item>
        </a-sub-menu>
    </div>
</template>
<script setup>
import useUserStore from '@/store/modules/user';
const userStore = useUserStore()
import {
    SafetyOutlined,
    UserOutlined,
    BranchesOutlined,
    UserAddOutlined,
    GlobalOutlined
} from '@ant-design/icons-vue'
const props = defineProps({
    theme: {
        type: String,
        default: 'light'
    }
})
</script>